<?php include_once __DIR__.'/../inc/userhead.html';?>
<?php include_once __DIR__.'/../inc/usermenu.html';?>
<style>
.panel_form .inl {
    padding-bottom: 0px;
    overflow: hidden;
}
</style>
<!--导航条-->
<!--右面板-->
            <div class="main_panel">
                <!--头部-->
                <div class="panel_head">
                    <ul class="title">
                        <li><a href="javascript:;">订单详情</a></li>
                    </ul>
                </div>
                <!--头部-->
                <div style="height:25px"></div>
                <!--内容-->
                <div class="panel_form clearAfter">
                    <form name="UserForm" class="layui-form">
                        <div class="panel_cut">
                            <p class="inl">
                                <span>订单编号</span>
                                <span style='line-height:35px' class="keyRed"><?=$info[0]['order_no']?></span>
                            </p>
                            <p class="inl">
                                <span>收货人</span>
                                <span style='line-height:35px' ><?=$info[0]['sh_name']?></span>
                            </p>
                            <p class="inl">
                                <span>手机号</span>
                                <span style='line-height:35px' ><?=$info[0]['sh_phone']?></span>
                            </p>
                            <p class="inl">
                                <span>收货地址</span>
                                <span style='line-height:35px;width: 50%' ><?=$info[0]['sh_address']?></span>
                            </p>
                            <p class="inl">
                                <span>支付状态</span>
                                <span style='line-height:35px' ><?=$info[0]['pay_status']?></span>
                            </p>
                            <p class="inl">
                                <span>发货状态</span>
                                <span style='line-height:35px' ><?=$info[0]['fahuo_status']?></span>
                            </p>
                            <p class="inl">
                                <span>订单总价</span>
                                <span style='line-height:35px' ><?=$info[0]['order_total_money']?></span>
                            </p>
                        </div>
                        <!--<p class="inl addMarg clear">-->
                            <!--<input type="button"  lay-filter="myform" class="save_btn btn_new_color" lay-submit value="提交保存">-->
                        <!--</p>-->
                    </form>
                </div>
    <div class="layui-form">
        <table class="layui-table">
            <colgroup>
                <col width="120">
                <col>
                <col>
                <col width="100">
                <col width="100">
                <col width="100">
                <col width="120">
            </colgroup>
            <thead>
            <tr>
                <th>商品缩略图 </th>
                <th>商品名称</th>
                <th>规格名称</th>
                <th>商品数量 </th>
                <th>商品单价 </th>
                <th>商品总价 </th>
                <th>是否发货</th>
            </tr>
            </thead>
            <tbody>
            <?php foreach($info as $key=>$value):?>
            <tr>
                <th><a href="<?=$value["pic"]?>"><img src="<?=$value["pic"]?>"/></a></th>
                <td><?=$value["title"]?></td>
                <td><?=$value["goods_price_title"]?></td>
                <td><?=$value["nums"]?></td>
                <td><?=$value["goods_price_price"]?></td>
                <td><?=$value["total_money"]?></td>
                <td><?=$value['fahuo_status'] ?></td>
            </tr>
            <?php endforeach; ?>
            </tbody>
        </table>
    </div>
            </div>
        </div>
    <!--内容-->
    </div>
    <!--右面板-->
</div>
    <!--右面板-->
<script>
$(function () {
    <?php if(isset($_GET['out_trade_no'])):?>
        var order_no = "<?=$_GET['out_trade_no']?>";
        var order_goods_no = "<?=$info[0]['order_no']?>";
        checkRecharge(order_no,order_goods_no);
    <?php endif;?>
})
</script>
<script>
    function checkRecharge(order_no, order_goods_no){
        $.ajax({
            url:"/order/forEachUserRecharge",
            method:"post",
            dataType:"json",
            data:{order_no:order_no,order_goods_no:order_goods_no},
            success:function(res){
                if(res.code == 0){
                    _action(res);
                }
            }
        });
    }
</script>
<?php include_once __DIR__.'/../inc/foot.html';?>
